package com.yj.suncity.bean;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONObject;

public class GoodsShopBean {
	   private String userid;//": "27c19669-6d28-4c8e-9027-709d97da4954",
	   private String ent_logo;//": "/upload/201504/19/201504191215098670.png",
	   private String entname;//": "gongsi1",
	   private String ent_address;//": "lianxidizhi",
	   private List<GoodsBean> goods;//": [
	public GoodsShopBean(JSONObject json) {
		this.userid = json.optString("userid");
		this.ent_logo = json.optString("ent_logo");
		this.entname = json.optString("entname");
		this.ent_address = json.optString("ent_address");
		this.goods = new ArrayList<GoodsBean>();
		JSONArray array=json.optJSONArray("goods");
		if (array!=null) {
			for (int i = 0; i < array.length(); i++) {
				JSONObject item = array.optJSONObject(i);
				if (item!=null) {
					this.goods.add(new GoodsBean(item));
				}
			}
		}
	}
	public String getUserid() {
		return userid;
	}
	public String getEnt_logo() {
		return ent_logo;
	}
	public String getEntname() {
		return entname;
	}
	public String getEnt_address() {
		return ent_address;
	}
	public List<GoodsBean> getGoods() {
		return goods;
	}
	

}
